package com.zatech.cgnci.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 事故限额表
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("cgnci_accident_limit")
@ApiModel(value = "CgnciAccidentLimitDO对象", description = "事故限额表")
public class CgnciAccidentLimitDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("限额ID")
    @TableId(value = "limit_id", type = IdType.ASSIGN_ID)
    private Long limitId;

    @ApiModelProperty("业务ID")
    private Long businessId;

    @ApiModelProperty("唯一键")
    private String rowKey;

    @ApiModelProperty("适用险种")
    private String riskSubType;

    @ApiModelProperty("适用险种编码")
    private String riskSubTypeCode;

    @ApiModelProperty("币种(参考码表)")
    private String currency;

    @ApiModelProperty("事故类型")
    private String accident;

    @ApiModelProperty("限额")
    private BigDecimal limitAmount;

    @ApiModelProperty("风险单位数量")
    private Integer riskUnitCount;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("更新时间")
    @TableField(update = "now()")
    private Date updateTime;

    @ApiModelProperty("更新人")
    private String updateUser;


}
